package com.mpyy.service.inventory;

import com.mpyy.dao.inventory.InventoryCheckMapperDaoInter;
import com.mpyy.pojo.DepotInfo;
import com.mpyy.pojo.InventoryCheck;
import com.mpyy.pojo.InventoryCheckDesc;
import com.mpyy.pojo.InventoryDesc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description InventoryCheckServiceImpl
 * @Author wx
 * @Date 2022-03-07 10:40
 * @Version 1.0
 */
@Service(value = ("inventoryCheckServiceImpl"))
public class InventoryCheckServiceImpl implements InventoryCheckServiceInter {
    @Autowired
    @Qualifier(value = ("inventoryCheckMapperDaoInter"))
    private InventoryCheckMapperDaoInter inventoryCheckMapperDaoInter;

    @Override
    public List<InventoryDesc> searchCheck(String inveDescDepot) {
        List <InventoryDesc> inventoryDescs = inventoryCheckMapperDaoInter.searchCheck(inveDescDepot);
        return inventoryDescs;
    }

    @Override
    public List <InventoryDesc> searchCheckId(String inveDescId) {
        List <InventoryDesc> inventoryDescs = inventoryCheckMapperDaoInter.searchCheckId(inveDescId);
        return inventoryDescs;
    }

    @Override
    public List <InventoryCheck> searchTakeStock() {
        List <InventoryCheck> inventoryChecks = inventoryCheckMapperDaoInter.searchTakeStock();
        return inventoryChecks;
    }

    @Override
    public List <InventoryCheckDesc> searchTakeStockId(String invCheckId) {
        List <InventoryCheckDesc> inventoryDescs = inventoryCheckMapperDaoInter.searchStatement(invCheckId);
        return inventoryDescs;
    }
    //删除盘点单内商品
    @Override
    public int updateCommodity(String invCheckDescId) {
        int i = inventoryCheckMapperDaoInter.updateCommodity(invCheckDescId);
        return i;
    }

    @Override
    public int updateInventoryList(String invCheckId) {
        int i = inventoryCheckMapperDaoInter.updateInventoryList(invCheckId);
        return i;
    }

    @Override
    public int updateInventory(String invCheckId) {
        int i = inventoryCheckMapperDaoInter.updateInventory(invCheckId);
        return i;
    }

    @Override
    public List <InventoryCheck> searchInventorySurpluslosses() {
        List <InventoryCheck> inventoryChecks = inventoryCheckMapperDaoInter.searchInventorySurpluslosses();
        return inventoryChecks;
    }

    @Override
    public List <InventoryCheckDesc> searchInventoryDesc(List<String> invCheckId) {
        List <InventoryCheckDesc> inventoryCheckDescs = inventoryCheckMapperDaoInter.searchInventoryDesc(invCheckId);
        return inventoryCheckDescs;
    }

    @Override
    public int updateInventoryCheckDesc(InventoryCheckDesc inventoryCheckDesc) {
        int i = inventoryCheckMapperDaoInter.updateInventoryCheckDesc(inventoryCheckDesc);
        return i;
    }

    @Override
    public List <InventoryDesc> searchProidDesc(String inveDescBatchNum) {
        List <InventoryDesc> inventoryDescs = inventoryCheckMapperDaoInter.searchProidDesc(inveDescBatchNum);
        return inventoryDescs;
    }

    @Override
    public List <InventoryCheckDesc> searchSta() {
        List <InventoryCheckDesc> inventoryCheckDescs = inventoryCheckMapperDaoInter.searchSta();
        return inventoryCheckDescs;
    }

    @Override
    public int updateCheckDescId(String invCheckDescId) {
        int i = inventoryCheckMapperDaoInter.updateCheckDescId(invCheckDescId);
        return i;
    }

    @Override
    public int updateInvenCheck(InventoryCheck inventoryCheck) {
        int i = inventoryCheckMapperDaoInter.updateInvenCheck(inventoryCheck);
        return i;
    }

    @Override
    public List <DepotInfo> searchDepotInfowx() {
        List <DepotInfo> depotInfos = inventoryCheckMapperDaoInter.searchDepotInfowx();
        return depotInfos;
    }

    @Override
    public int updateInvenDescNum(InventoryCheckDesc inventoryCheckDesc) {
        int i = inventoryCheckMapperDaoInter.updateInvenDescNum(inventoryCheckDesc);
        return i;
    }
}
